package com.ziyucoding.springboot.labs.lab10.seatdemo.atscfeign.orderservice.feign;

import com.ziyucoding.springboot.labs.lab10.seatdemo.atscfeign.orderservice.feign.dto.ProductReduceStockDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 产品服务 Feign 端
 *
 * @author ziyucoding
 * @date 2022-11-03
 **/
@FeignClient(name = "product-service")
public interface ProductServiceFeignClient {

    @PostMapping("/product/reduce-stock")
    Map<String, Object> reduceStock(@RequestBody ProductReduceStockDTO productReduceStockDTO);

}
